From: Juanma Barranquero Date: Mon, 11 Nov 2002 11:44:05 +0000 (+0000) Subject: (dired-show-file-type): Format filename with "%s" to escape any format-like X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~29809 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d3b4b80b9809a588450045e69b32b8db9c9a4ec0;p=emacs.git (dired-show-file-type): Format filename with "%s" to escape any format-like sequences it could contain. --- diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index c20888f7da1..09ad9f9a677 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -2033,7 +2033,7 @@ true then the type of the file linked to by FILE is printed instead." (call-process "file" nil t t "--" file)) (when (bolp) (backward-delete-char 1)) - (message (buffer-string)))) + (message "%s" (buffer-string)))) (provide 'dired-aux)